<?php

namespace Home\Controller;
use Think\Controller;
/**
 *use Common\Model这块可以不需要使用，框架默认会加载里面的内容 
 */
 class CommonController extends Controller {
 		public function __construct (){
 			header("Content-Type: text/html; charset:utf-8");
			parent::__construct ();
 		}
		
		public function error ($message) {
			$message = $message ? $message : "系统错误";
			$this->assign("message",$message);
			$this->display("Index/error");
		}
 }		
 	